package com.ruoyi.projectRequest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.projectRequest.mapper.HouseProjectRequestMapper;
import com.ruoyi.projectRequest.domain.HouseProjectRequest;
import com.ruoyi.projectRequest.service.IHouseProjectRequestService;

/**
 * 维修申请Service业务层处理
 * 
 * @author lijie
 * @date 2023-07-27
 */
@Service
public class HouseProjectRequestServiceImpl implements IHouseProjectRequestService 
{
    @Autowired
    private HouseProjectRequestMapper houseProjectRequestMapper;


    /**
     * 查询维修申请列表
     * 
     * @param houseProjectRequest 维修申请
     * @return 维修申请
     */
    @Override
    public List<HouseProjectRequest> selectHouseProjectRequestList(HouseProjectRequest houseProjectRequest)
    {
        return houseProjectRequestMapper.selectHouseProjectRequestList(houseProjectRequest);
    }


    @Override
    public int updateStsById(Long[] ids, HouseProjectRequest houseProjectRequest)
    {
        for(Long id:ids){
            houseProjectRequest.setId(id);
            houseProjectRequestMapper.updateStsById(houseProjectRequest);
        }
        return 1;
    }
}
